


//
//  MBCVCFactory.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/7.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBCVCFactory.h"

@implementation MBCVCFactory

+(MBSeletedCVC *)MBCVCFactoryCreatWithType:(CVCType)type{
    
    MBSeletedCVC *vc = [[MBSeletedCVC alloc] init];
    if (type == CVCTypeCharecterResident) {
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"拎包入住",@"首次出租",@"采光好",@"停车位多",@"地铁口附近",@"商业街附近",@"学校附近",@"有电梯",@"有阳台",@"有花园",@"有阁楼",@"有地下室"]];
        vc.type = CVCTypeCharecterResident;
        vc.title = @"特色";
        
    }else if (type == CVCTypeCharecterOffBuilding){
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"标志性建筑", @"5A甲级", @"名企入驻", @"地铁口附近", @"电梯口", @"商业街附近", @"整层整栋", @"小面积", @"停车位多", @"可注册公司"]];
         vc.type = CVCTypeCharecterOffBuilding;
         vc.title = @"特色";
        
    }else if (type == CVCTypeCharecterShop){
        vc.contentMut =[NSMutableArray arrayWithArray:@[@"沿街旺铺", @"繁华地段", @"专业市场", @"住宅底商", @"综合体配套", @"地铁口附近", @"小面积", @"独栋整层", @"知名商户入驻", @"可分隔办公室"]];
         vc.type = CVCTypeCharecterShop;
         vc.title = @"特色";
        
        
    }else if (type == CVCTypeLeixingResident){
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"一室",@"两室",@"三室",@"四室",@"四室以上"]];
         vc.type = CVCTypeLeixingResident;
        vc.title = @"户型";
        
        
    }else if (type == CVCTypeLeixingOffBuilding){
         vc.contentMut = [NSMutableArray arrayWithArray:@[@"纯写字楼",@"商业综合体",@"商住连用楼",@"其他"]];
         vc.type = CVCTypeLeixingOffBuilding;
        vc.title = @"写字楼类型";
        
    }else if (type == CVCTypeLeixingShop){
         vc.contentMut = [NSMutableArray arrayWithArray:@[@"购物中心",@"社区商业",@"综合体配套",@"其他"]];
         vc.type = CVCTypeLeixingShop;
        vc.title = @"商铺类型";
    }
    
    // --------发布租房信息-------
    else if (type == CVCType_houseResidentCharacter) { // 住宅特色---房源信息
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"拎包入住",@"首次出租",@"采光好",@"停车位多",@"地铁口附近",@"商业街附近",@"学校附近",@"有电梯",@"有阳台",@"有花园",@"有阁楼",@"有地下室"]];
        vc.type = CVCType_houseResidentCharacter;
        vc.title = @"特色标签";
       
        
    }else if(type  == CVCType_houseOffBuildingChareater){ // 写字楼特色---房源信息
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"标志性建筑", @"5A甲级", @"名企入驻", @"地铁口附近", @"电梯口", @"商业街附近", @"整层整栋", @"小面积", @"停车位多", @"可注册公司"]];
        vc.type = CVCType_houseOffBuildingChareater;
        vc.title = @"特色标签";
    }else if (type == CVCType_houseShopCharater){ // 商铺特色--房源信息
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"沿街旺铺", @"繁华地段", @"专业市场", @"住宅底商", @"综合体配套", @"地铁口附近", @"小面积", @"独栋整层", @"知名商户入驻", @"可分隔办公室"]];
        vc.type = CVCType_houseResidentOritation;
        vc.title = @"特色标签";
        
#pragma mark ---单选
    }else if (type == CVCType_houseResidentOritation){  // 住宅朝向
        MBSelectedOratationVC *vc = [[MBSelectedOratationVC alloc] init];
        vc.contentMut = [NSMutableArray arrayWithArray:@[@"朝东",@"朝西",@"朝南",@"朝北",@"东南",@"东北",@"西南",@"西北"]];
        vc.type = CVCType_houseResidentOritation;
         vc.title = @"住宅朝向";
        return  vc;
    }
    
    
    
    return vc;
    
}

@end
